package com.app.biz.service.impl;

import com.app.biz.domain.*;
import com.app.biz.mapper.*;
import com.app.biz.service.IOperationService;
import com.app.common.annotation.DataSource;
import com.app.common.enums.DataSourceType;
//import org.omg.CORBA.PRIVATE_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(value = DataSourceType.SLAVE)
public class OperationServiceImpl implements IOperationService {

    @Autowired
    private OperationEconomicMapper operationEconomicMapper;
    @Autowired
    private OperationEconomicIndicatorsMapper operationEconomicIndicatorsMapper;

    @Autowired
    private OperationFocusProductMapper operationFocusProductMapper;
    @Autowired
    private OperationPowerMapper operationPowerMapper;

    @Autowired
    private OperationMetricMapper operationMetricMapper;

    @Override
    public void batchInsertOperationEconomic(List<OperationEconomic> list) {

       operationEconomicMapper.batchInsertOperationEconomic(list);
    }

    @Override
    public void batchInsertOperationEconomicIndicator(List<OperationEconomicIndicators> list) {

        operationEconomicIndicatorsMapper.batchInsertOperationEconomicIndicator(list);
    }


    @Override
    public void batchInsertOperationFocusProduct(List<OperationFocusProduct> list) {
        operationFocusProductMapper.batchInsertOperationFocusProduct(list);
    }

    @Override
    public void batchInsertOperationPower(List<OperationPower> list) {

        operationPowerMapper.batchInsertOperationPower(list);
    }

    @Override
    public void batchInsertOperationMetric(List<OperationMetric> list) {

        operationMetricMapper.batchInsertOperationMetric(list);
    }
}
